package com.ruoyi.tasks.controller;

import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.tasks.dto.TaskDto;
import com.ruoyi.tasks.service.ICodeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @Author: Feng.Xiang
 * @Date 2022-10-07
 * @Description:
 * @Modified By:
 * @Version: 1.0
 */
@Controller
@RequestMapping("/rqcode")
public class QrCodeController {

    @Autowired
    private ICodeService codeService;

    @PostMapping("/code")
    public AjaxResult getCode() {
        codeService.getCode();
        return AjaxResult.success("成功");
    }
}
